package com.wardrobe.soa.backend.admin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/")
public class IndexController {

    @RequestMapping("index")
    public String index() {
        return "redirect:/portal";
    }

    @RequestMapping("")
    public String navBar() {
        return "redirect:home.html";
    }

    @RequestMapping("health")
    @ResponseBody
    public String health() {
        return "ok";
    }

}